-- Python文件专属设置
vim.api.nvim_create_autocmd("FileType", {
  pattern = "python",
  callback = function()
    vim.opt_local.shiftwidth = 4
    vim.opt_local.tabstop = 4
    vim.b.cmp_sources = "jedi"  -- 标记Python补全源
  end
})

-- C文件专属设置
vim.api.nvim_create_autocmd("FileType", {
  pattern = {"c", "cpp"},
  callback = function()
    vim.opt_local.shiftwidth = 2
    vim.b.cmp_sources = "clang"  -- 标记C补全源
  end
})
